Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a cache value for configs #266

Merged
merged 2 commits into from
Apr 12, 2024
Merged

Conversation

GwendalRaoul
Copy link
Contributor

Avoid case of uncomplete config published in GatewayStatus

It ensure that if we have difficulties to read it from sink (during scratchpad exchange),
config is still valid (missing values are from the cache).
# Publish only if something has changed
if self._last_status_config is not None and \
self._last_status_config == configs:
logging.info("No new status to publish")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

over-indented


# Publish only if something has changed
if self._last_status_config is not None and \
self._last_status_config == configs:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line with same indent as next logical line

@GwendalRaoul GwendalRaoul merged commit 710ba6f into master Apr 12, 2024
2 checks passed
@GwendalRaoul GwendalRaoul deleted the feature/add_cached_value2 branch April 12, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants